import {MainData, PK, StatusData} from "../../coreModule/data/BaseData";
import {field} from "../../coreModule/data/DataLoader";


export enum ScoreStatus {
	Normal, Withdrawn
}
export enum ScoreType {
	Add, Minus
}
export class ScoreRecord extends StatusData<ScoreStatus> {

	@field
	public userId: string = "";
	@field(Number)
	public value: number;
	@field(Number)
	public type: ScoreType = ScoreType.Add;
	@field
	public desc: String = "";
	@field(Number)
	public createdAt: number;
	@field(Number)
	public status: ScoreStatus = ScoreStatus.Normal;

	public refresh(){}

}
